/*
 * @(#)JwiRelationship.java	1.0 08/01/07
 *
 * Copyright 2007 Fabio Gasparetti. All rights reserved.
 */

package org.tabularium.text.nlp.wordnet.jwi;

import org.tabularium.text.nlp.wordnet.Relationship;

import edu.mit.jwi.item.WordnetPointerType;

/**
 * 
 * @author Fabio Gasparetti
 * @version 1.0, 08/01/07
 */
public class JwiRelationship {
	static WordnetPointerType translate(int relationship) {
		switch (relationship) {
		case Relationship.ALSO_SEE:
			return WordnetPointerType.ALSO_SEE;
		case Relationship.ANTONYM:
			return WordnetPointerType.ANTONYM;
		case Relationship.ATTRIBUTE:
			return WordnetPointerType.ATTRIBUTE;
		case Relationship.CAUSE:
			return WordnetPointerType.CAUSE;
		case Relationship.DERIVED:
			return WordnetPointerType.DERIVED;
		case Relationship.ENTAILMENT:
			return WordnetPointerType.ENTAILMENT;
		case Relationship.HOLONYM_MEMBER:
			return WordnetPointerType.HOLONYM_MEMBER;
		case Relationship.HOLONYM_PART:
			return WordnetPointerType.HOLONYM_PART;
		case Relationship.HOLONYM_SUBSTANCE:
			return WordnetPointerType.HOLONYM_SUBSTANCE;
		case Relationship.HYPERNYM:
			return WordnetPointerType.HYPERNYM;
		case Relationship.HYPERNYM_INSTANCE:
			return WordnetPointerType.HYPERNYM_INSTANCE;
		case Relationship.HYPONYM:
			return WordnetPointerType.HYPONYM;
		case Relationship.HYPONYM_INSTANCE:
			return WordnetPointerType.HYPONYM_INSTANCE;
		case Relationship.MERONYM_MEMBER:
			return WordnetPointerType.MERONYM_MEMBER;
		case Relationship.MERONYM_PART:
			return WordnetPointerType.MERONYM_PART;
		case Relationship.MERONYM_SUBSTANCE:
			return WordnetPointerType.MERONYM_SUBSTANCE;
		case Relationship.PARTICIPLE:
			return WordnetPointerType.PARTICIPLE;
		case Relationship.PERTAINYM:
			return WordnetPointerType.PERTAINYM;
		case Relationship.REGION:
			return WordnetPointerType.REGION;
		case Relationship.REGION_MEMBER:
			return WordnetPointerType.REGION_MEMBER;
		case Relationship.SIMILAR_TO:
			return WordnetPointerType.SIMILAR_TO;
		case Relationship.TOPIC:
			return WordnetPointerType.TOPIC;
		case Relationship.TOPIC_MEMBER:
			return WordnetPointerType.TOPIC_MEMBER;
		case Relationship.USAGE:
			return WordnetPointerType.USAGE;
		case Relationship.USAGE_MEMBER:
			return WordnetPointerType.USAGE_MEMBER;
		case Relationship.VERB_GROUP:
			return WordnetPointerType.VERB_GROUP;
		case Relationship.TROPONYMY:
			// in jwi trponymy of verbs becomes hyponym
			return WordnetPointerType.HYPONYM;
		default:
			return null;
		}
	}
}
